package com.zxs.mongdb.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @ClassName Person
 * @Description TODO
 * @Author zxs
 * @Date 2021/4/6 16:27
 * Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(value="person")
public class Person {
    private ObjectId id;
    private String name;
    private int age;
    private String address;
}
